<?php
require('smarty/libs/Smarty.class.php');

class SmartyConnect extends Smarty{

   function SmartyConnect($projectName = ""){

		$this->Smarty();

		$this->caching = false;

		$server = $_SERVER['DOCUMENT_ROOT'];

		$this->template_dir		= $server."\\".$projectName."\smarty\\templates";
		$this->config_dir		= $server."\\".$projectName."\smarty\config";
		$this->cache_dir		= $server."\\".$projectName."\smarty\cache";
		$this->compile_dir		= $server."\\".$projectName."\smarty\\templates_c";
		
   }

}
?>